// import axios from 'axios'
import axios from '@/utils/request'

export const postAction = (url, param, config) => {
  return axios({
    url,
    method: 'post',
    data: param,
    ...config
  })
}

export const getAction = (url, headers, param, config) => {
  return axios({
    url,
    method: 'get',
    params: param,
    headers: headers || {},
    ...config
  })
}
